
<!--
  Preview this file by prepending http://htmlpreview.github.io/? to its URL
  e.g. http://htmlpreview.github.io/?https://raw.githubusercontent.com/Azure/bicep/main/src/highlightjs/test/baselines/params.html
-->
<html>
  <head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css">
  </head>
  <body>
    <pre class="hljs">
<span class="hljs-comment">/*
This is a
multiline comment!
*/</span>

<span class="hljs-comment">// This is a single line comment</span>

<span class="hljs-comment">// using keyword for specifying a Bicep file</span>
<span class="hljs-variable"><span class="hljs-keyword">using</span></span> <span class="hljs-string">&#x27;./params_main.bicep&#x27;</span>

<span class="hljs-comment">// parameter assignment to literals</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">myString</span> = <span class="hljs-string">&#x27;hello world!!&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">myInt</span> = <span class="hljs-number">42</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">myBool</span> = <span class="hljs-literal">true</span>

<span class="hljs-comment">// parameter assignment to objects</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">password</span> = <span class="hljs-string">&#x27;strongPassword&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">secretObject</span> = {
  <span class="hljs-property">name</span> : <span class="hljs-string">&#x27;vm2&#x27;</span>
  <span class="hljs-property">location</span> : <span class="hljs-string">&#x27;westus&#x27;</span>
}
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">storageSku</span> = <span class="hljs-string">&#x27;Standard_LRS&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">storageName</span> = <span class="hljs-string">&#x27;myStorage&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">someArray</span> = [
  <span class="hljs-string">&#x27;a&#x27;</span>
  <span class="hljs-string">&#x27;b&#x27;</span>
  <span class="hljs-string">&#x27;c&#x27;</span>
  <span class="hljs-string">&#x27;d&#x27;</span>
]
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">emptyMetadata</span> = <span class="hljs-string">&#x27;empty!&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">description</span> = <span class="hljs-string">&#x27;descriptive description&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">description2</span> = <span class="hljs-string">&#x27;also descriptive&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">additionalMetadata</span> = <span class="hljs-string">&#x27;more metadata&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">someParameter</span> = <span class="hljs-string">&#x27;three&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">stringLiteral</span> = <span class="hljs-string">&#x27;abc&#x27;</span>
<span class="hljs-variable"><span class="hljs-keyword">param</span></span> <span class="hljs-variable">decoratedString</span> = <span class="hljs-string">&#x27;Apple&#x27;</span>

    </pre>
  </body>
</html>